#!/bin/bash
#判断doss-dispatcher进程是否存在，如果不存在就启动它
project_path="/home/apps/bytd/go-midea-server" # 项目路径
project_file="doss-dispatcher" # 打包后的项目文件名
pid=`ps -ef |grep ${project_file} |grep -v grep`
if [ "$pid" == "" ]; then
    cd ${project_path} &&
    nohup ./${project_file} >/dev/null 2>&1 &
fi